/* 全局样式 */
html {
    overflow-y: scroll;
}

:root {
    overflow-y: auto;
    overflow-x: hidden;
}

:root body {
    position: absolute;
}

body {
    width: 100vw;
    /* overflow: hidden; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, "PingFang SC", "Microsft Yahei", sans-serif;
    font-size: 14px;
}

body,
html {
    margin: 0;
}

img {
    width: 100%;
}

:root {
    --primary-color: #ff434f;
    --secondary-color: #e3e3e3;
    --text-color-lightest: #e7e9ec;
    --text-color-darker: #2e2e2e;
    --text-color-dark: #494949;
    --text-color-gray: #8b8b8b;
    --text-color-dark-gray: #727272;
    --text-color-light-gray: #c6c6c6;
    --backdrop-color: rgba(42, 42, 42, .69);
}


/* 导航设置 */
header {
    width: 100vw;
    height: 80px;
    line-height: 80px;
    display: grid;

    padding: 0 40px;
    box-sizing: border-box;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    position: relative;
    z-index: 200;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color-lightest);
}

header.sticky {
    position: fixed;
    background-color: white;
    box-shadow: 0 0 18px rgba(0, 0, 0, .2);
    animation: dropDown 1s ease-in-out forwards;
}

/* 设置导航的动画效果 */
@keyframes dropDown {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0)
    }
}

header.sticky .logo,
header.sticky nav a,
header.sticky nav i {
    color: var(--text-color-darker)
}

header nav {
    justify-self: end;
}

header nav i {
    color: var(--text-color-lightest);
}

header nav a {
    color: var(--text-color-lightest);
    text-decoration: none;
    margin: 0 24px;
}

.header .burger {
    display: none;
}


/* 轮播 */

.glide {
    position: relative;
    top: -80px;
    z-index: 50;
}

.glide__slide img,
.glide__slide video {
    display: block;
    vertical-align: bottom;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    z-index: 70;
    color: var(--text-color-lightest);
    text-align: center;
    max-width: 60vw;
}

.slide-caption>* {
    opacity: 0;
}

.glide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-caption.left {
    max-width: 80vw;
    text-align: left;
}

.slide-caption h1 {
    font-size: 54px;
    font-weight: 600;
}

.slide-caption h3 {
    font-size: 24px;
    margin: 48px 0;
}

.backdorp {
    background-color: var(--backdrop-color);
    z-index: 60;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: .5;
}

.explore-btn {
    padding: 14px 32px;
    background-color: var(--primary-color);
    border: 0;
    border-radius: 4px;
    color: var(--text-color-lightest);
    cursor: pointer;
    outline: none;
}


/* 内容区域 */

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

section {
    display: grid;
    justify-items: center;
    max-width: 1180px;
    padding: 0 80px;
}

.section-bg {
    position: relative;
}

.section-bg::before {
    content: "";
    display: block;
    position: absolute;
    background-color: #f9fbfb;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.title {
    font-size: 34px;
    color: var(--text-color-dark)
}

.title::after {
    content: "";
    display: block;
    width: 80%;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 14px;
    transform: translate(10%)
}

.intro {
    margin: 28px 0 60px 0;
    font-size: 18px;
    color: var(--text-color-dark-gray);
}

/* 关于我们 */
/* 关于我们 */
.about-us {
    padding-bottom: 32px;
}

.features {
    display: grid;
    /* 重复几次，重复的值  1fr：容器宽度的1/3*/
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: 126px 126px; */
    column-gap: 5vw;
    row-gap: 2vw;
}

.feature {
    display: grid;
    grid-template-areas:
        "icon title"
        "icon content";
    grid-template-columns: 60px 1fr;
    grid-template-rows: 1fr 3fr;
}

.feature i.fas {
    grid-area: icon;
    font-size: 34px;
    color: var(--primary-color);
}

.feature-title {
    grid-area: title;
    font-size: 18px;
    color: var(--text-color-darker);
}

.feature-content {
    grid-area: content;
    color: var(--text-color-gray);
    margin-top: 8px;
}


/* 成功案例 */
/* 成功案例 */
.showcases {
    max-width: unset;
    padding: 0px;
    padding-top: 72px;
}

.filter-btns {
    margin-top: 54px;
    margin-bottom: 38px;
}

.filter-btn {
    margin: 0 7px;
    background-color: var(--secondary-color);
    border: 0;
    color: var(--text-color-dark-gray);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.4s;
}

.filter-btn:focus,
.filter-btn:active {
    outline: none;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.showcases .cases {
    width: 100vw;
}

.showcases .case-item {
    width: 25vw;
    height: 20vw;
    overflow: hidden;
}

.case-item img {
    height: 100%;
    object-fit: cover;
}

/* 服务流程 */

.service {
    padding-top: 131px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: 38px;
    row-gap: 34px;
}

.service-item {
    display: grid;
    grid-template-areas:
        "icon title"
        "icon content";
    grid-template-columns: 70px 1fr;
    grid-template-rows: 1fr 3fr;
    padding: 24px;
    box-shadow: 0 0 18px rgba(0, 0, 0, .06);
}

.service-item i.fas {
    grid-area: icon;
    font-size: 42px;
    color: var(--primary-color);
    padding-top: 6px;
}

.service-item .service-title {
    grid-area: title;
    color: var(--text-color-darker);
    font-size: 24px;
}

.service-item .service-content {
    grid-area: content;
    color: var(--text-color-gray);
    line-height: 30px;
    font-size: 16px;
    margin-top: 8px;
}

/* 团队介绍 */
.team-intro {
    margin-top: 48px;
    padding-top: 62px;
    padding-bottom: 52px;
    max-width: 100%;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    margin-top: 86px;
}

.team-member {
    background-color: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, .2);
    text-align: center;
    padding-bottom: 28px;
    transition: .4s;
    display: grid;
    justify-items: center;
}

.profile-image {
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    object-position: top center;
}

.team-member .name {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color-dark)
}

.team-member .position {
    color: var(--text-color-dark-gary);
    margin-top: 12px;
    margin-bottom: 18px;
}

.social-links {
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: space-between;
    padding: 0 42px;
}

.social-links li {
    list-style: none;
}

.social-links li a {
    color: var(--text-color-dark);
    font-size: 20px;
    text-decoration: none;
}

.team-member:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0px 0px 36px rgba(0, 0, 0, .1);
}

/* 数据部分 */

.data-section {
    max-width: unset;
    width: 100%;
    height: 255px;
    background: url('images/adult-business-computer-contemporary-380769.jpg') no-repeat;
    background-position: center -300px;
    background-size: cover;
    grid-template-columns: repeat(4, minmax(auto, 220px));
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
    margin-bottom: 40px;
}

.data-section::before {
    content: "";
    display: block;
    position: absolute;
    background-color: var(--backdrop-color);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.data-section .data-piece {
    width: 250px;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    color: #fff;
    position: relative;
    z-index: 40;
}

.data-section .data-piece i.fas {
    font-size: 44px;
}

.data-section .data-piece .num {
    margin-top: 7px;
    font-size: 41px;
    font-weight: 600;
}

.data-section .data-piece .data-desc {
    font-size: 18px;
    font-weight: 500;
}


/* 公司动态 */
.company-activities {
    margin-top: 88px;
    padding-bottom: 40px;
}

.activities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
}

.activity {
    box-shadow: 0 0 24px rgba(0, 0, 0, .1);
    padding: 24px;
    transition: .4s;
}

.activity:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 0 36px rgba(0, 0, 0, .1);
}

.act-imag-wrapper {
    height: 255px;
    overflow: hidden;
    margin: 24px;
    margin-bottom: 0;
}

.act-imag-wrapper img {
    min-height: 300px;
    object-fit: cover;
}

.activity .meta {
    margin-top: 20px;
    margin-bottom: 12px;
    color: var(--text-color-light-gray);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.act-title {
    color: var(--text-color-dark);
    font-size: 18px;
    margin-bottom: 16px;
}

.activity article {
    color: var(--text-color-gray);
    letter-spacing: 0.54px;
    line-height: 24px;
}

.read-more-btn {
    border: 0;
    color: white;
    background-color: var(--primary-color);
    border-radius: 4px;
    padding: 6px 14px;
    margin-top: 24px;
}







/* 底部信息 */

footer {
    margin-top: 124px;
    background-color: #181818;
    display: grid;
    justify-items: center;
    padding-top: 72px;
    padding-bottom: 24px;
}

.footer-menus {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    padding: 0 80px;
    position: relative;
}

.menu-title {
    font-size: 16px;
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-us {
    justify-self: start;
    color: var(--text-color-lightest)
}

.contact-us p:not(:first-child) {
    padding-bottom: 16px;
}

.menu-items li {
    list-style: none;
    padding-bottom: 8px;
}

.menu-items li a {
    text-decoration: none;
    font-weight: 300;
    color: var(--text-color-lightest)
}

.icp-info {
    margin-top: 24px;
    margin-bottom: 16px;
}

.contact-by {
    margin-top: 0px;
    margin-bottom: 16px;
}

.icp-info,
.contact-by,
.rights {
    grid-column: 1 / -1;
    justify-self: center;
    color: white;
}

.scrollToTop a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 500;
}







@media screen and (max-width: 1100px) {

    /* 导航 */
    header nav {
        display: none;
    }

    header {
        display: grid;
        grid-template-columns: repeat(2, 1fr)
    }

    header .burger {
        display: block;
        width: 28px;
        height: 6px;
        position: relative;
        justify-self: end;
        cursor: pointer;
    }

    header .burger .burger-line1,
    header .burger .burger-line2,
    header .burger .burger-line3 {
        width: 20px;
        height: 2px;
        background-color: var(--text-color-lightest);
    }

    header .burger .burger-line1 {
        position: absolute;
        top: -6px;
    }

    header .burger .burger-line3 {
        position: absolute;
        top: 6px;
    }

    header.open nav>* {
        color: var(--text-color-darker);
        line-height: 35px;
        animation: showMenu 0.5s linear forwards 0.4s;
    }

    header.open nav i {
        padding-right: 28px;
    }

    header.open nav {
        display: grid;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        grid-auto-rows: max-content;
        justify-items: end;
        padding: 0 48px;
        /* opacity: 0; */
        animation: slideDown .6s ease-out forwards;
    }

    header.open .burger .burger-line1,
    header.open .burger .burger-line2,
    header.open .burger .burger-line3,
    header.sticky .burger .burger-line1,
    header.sticky .burger .burger-line2,
    header.sticky .burger .burger-line3 {
        background-color: var(--text-color-darker);
        transition: .4s ease;
    }

    header.open .burger .burger-line1 {
        transform: rotate(45deg) translate(3px, 5px);
    }

    header.open .burger .burger-line2 {
        transform: translateX(5px);
        opacity: 0;
    }

    header.open .burger .burger-line3 {
        transform: rotate(-45deg) translate(3px, -5px);
    }

    header.open .logo {
        z-index: 40;
        color: var(--text-color-darker)
    }

    @keyframes slideDown {
        from {
            height: 0;
            opacity: 0;
        }

        to {
            height: 100vh;
            padding-top: 80px;
            opacity: 1;
        }
    }

    @keyframes showMenu {
        form {
            opacity: 0;
            transform: translateY(-1vh);
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }



    /* 服务流程 */
    .service-item .service-title {
        font-size: 20px;
    }

    .service-item .service-content {
        font-size: 14px;
        line-height: 24px;
    }


    /* 团队介绍 */
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 28px;
        row-gap: 28px;
    }


    /* 公司动态 */
    .activities {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 28px;
        row-gap: 28px;
        padding-left: 0;
        padding-right: 0;
    }
}


@media screen and (max-width: 992px) {

    /* 轮播 */
    .slide-caption h1 {
        font-size: 48px;
    }

    .slide-caption h3 {
        font-size: 20px;
    }


    /* 关于我们 */
    .about-us .features {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: unset;
    }


    /* 服务流程 */
    .services {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: unset;
    }

    /* 数据部分 */
    .data-section {
        grid-template-columns: repeat(2, minmax(200px, auto));
        grid-auto-rows: unset;
        padding: 24px 0;
        height: auto;
        background-position: center -120px;
    }

    /* 成功案例 */
    .showcases .cases .case-item {
        width: calc(100% / 3);
    }
}

@media screen and (max-width: 768px) {

    /* nav */
    header {
        height: 60px;
        line-height: 60px;
    }

    header .logo {
        font-size: 20px;
    }

    /* 轮播 */
    .slide-caption h1 {
        font-size: 40px;
    }

    .slide-caption h3 {
        font-size: 16px;
    }

    /* 全局 */
    section {
        padding: 0 40px;
    }

    /* 底部 */
    .footer-menus {
        padding: 0 40px;
        grid-template-columns: 2fr repeat(2, 1fr);
        row-gap: 24px;
    }

    .footer-menus .contact-us {
        grid-row: 1 / 3;
    }

    .footer-menu {
        text-align: right;
    }


    .data-section {
        grid-template-columns: 1fr;
        background-position: center -25px;
        padding: 24px 0;
        background-size: 350%;
    }

    .data-section .data-piece:nth-child(n+3) {
        padding-bottom: 0;
    }

    /* 关于我们 */
    .about-us .features {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }


    /* 服务流程 */
    .services {
        grid-template-columns: 1fr;
    }

    /* 成功案例 */
    .showcases .cases .case-item {
        width: calc(100% / 2);
    }

    /* 团队介绍 */
    .team-members {
        grid-template-columns: minmax(200px, 400px);
        row-gap: 40px;
    }

    /* 公司动态 */
    .activities {
        grid-template-columns: 1fr;
        row-gap: 45px;

    }
}

@media screen and (max-width: 442px) {

    /* nav */
    header {
        height: 50px;
        line-height: 50px;
    }

    header .logo {
        font-size: 18px;
    }

    /* 轮播 */
    .slide-caption h1 {
        font-size: 28px;
    }

    .slide-caption h3 {
        font-size: 14px;
    }

    .explore-btn {
        font-size: 14px;
        padding: 8px 18px;
    }

    /* 成功案例 */
    .showcases .cases .case-item {
        width: calc(100% / 1);
    }

    /* 底部 */
    .footer-menus {
        padding: 0 40px;
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .footer-menu {
        text-align: left;
    }
}